package com.study.controller;

import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RestController;

import java.text.SimpleDateFormat;
import java.util.Date;

/**
 * @Description: 自动化部署测试接口
 * @Author: ysf
 * @CreateTime: 2025-01-15  17:33
 * @Version: 1.0
 */
@RestController
public class JenkinsController {
    SimpleDateFormat SDF = new SimpleDateFormat("yyyy-MM-dd HH:mm:ss");

    @GetMapping("/")
    public String index() {
        String msg = "自动化部署：";
        return msg + "现在是北京时间：" + SDF.format(new Date()) + "成功";
    }
}
